package com.bruce.codeFactory.designMode.observer;

/**
 * @author luotuan
 * @Description
 * @create 2019-03-04 21:59
 **/
public abstract class Observer {
    protected Subject subject;

    public Observer(Subject subject) {
        this.subject = subject;
        subject.attch(this);
    }

    abstract void update();
}
